<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script src="Js/jquery-2.1.0.js" type="text/javascript" charset="utf-8"></script>
		<script>
			setTimeout(function(){
				window.onload=()=>alert("window-load");
				$(()=>alert("documnet-ready"));
			},3000);
			
			
			
			function getPromise(){
				return new Promise(resolve=>{
					setTimeout(()=>{
						resolve("123");
					},3000);
					
					$.ajax({
						success(data){
							resolve(data);
						}
					});
				});
			}
			async function getData(){
				let a = await getPromise();
				console.log(a);
				
			}
			
			async function test(){
				let result = await getData();
			}
			test();
		</script>
		<input type="button"  />
	</body>
</html>
